import requests from '@/utils/request';
const api = '/yst-order';

// 列表-列表查询
export const getOrderList = (data: any) => {
  return requests(`${api}/order/salSo/query`, {
    method: 'post',
    query: data
  });
};

// 列表-列表明细查询
export const findDetailById = (data: any) => {
  return requests(`${api}/order/salSo/findDetailById/${data}`, {
    method: 'get'
  });
};

// 销售订单编辑-查询订单详情
export const findDetail = (data: any) => {
  return requests(`${api}/order/salSo/orderDetail/${data.salSoId}`, {
    method: 'get'
    // query: data
  });
};

//销售订单编辑-获取所有信息币种
export const getCurrencyList = () => {
  return requests(`/yst-system/com/comCurr/all`, {
    method: 'get'
  });
};

// 销售订单编辑-明细-查询收款信息
export const getReceiptDetail = (id) => {
  return requests(`${api}/order/salSo/receiptDetail/${id}`, {
    method: 'get'
  });
};

// 工单类订单-C端-查询收款信息
export const getReceiptDetailById = (id) => {
  return requests(`${api}/order/salSo/receiptDetailById/${id}`, {
    method: 'get'
  });
};
